package com.kitty.game.pet.service;

import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;

public class PetYuanCurStateInfoBuilder  implements Serializable {
    private JSONObject phy_power;
    private JSONObject dev;
    private JSONObject max_life;
    private JSONObject mag_power;
    private JSONObject speed;



    public JSONObject getPhy_power() {
        return this.phy_power;
    }
    public void setPhy_power(JSONObject phy_power) {
        this.phy_power = phy_power;
    }

    public JSONObject getDev() {
        return this.dev;
    }

    public void setDev(JSONObject dev) {
        this.dev = dev;
    }

    public JSONObject getMax_life() {
        return this.max_life;
    }

    public void setMax_life(JSONObject max_life) {
        this.max_life = max_life;
    }

    public JSONObject getMag_power() {
        return this.mag_power;
    }

    public void setMag_power(JSONObject mag_power) {
        this.mag_power = mag_power;
    }

    public JSONObject getSpeed() {
        return this.speed;
    }

    public void setSpeed(JSONObject speed) {
        this.speed = speed;
    }

    public static PetYuanCurStateInfoBuilder builder() {
        return new PetYuanCurStateInfoBuilder();
    }

    private PetYuanCurStateInfoBuilder() {
        dev(10, false);
        phyPower(20, false);
        magPower(30, false);
        speed(40, false);
        maxLife(50, false);
    }

    public PetYuanCurStateInfoBuilder dev(int value, boolean active) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("value", Integer.valueOf(value));

            jsonObject.put("active", Boolean.valueOf(active));

        setDev(jsonObject);
        return this;
    }

    public PetYuanCurStateInfoBuilder magPower(int value, boolean active) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("value", Integer.valueOf(value));

            jsonObject.put("active", Boolean.valueOf(active));

        setMag_power(jsonObject);
        return this;
    }

    public PetYuanCurStateInfoBuilder maxLife(int value, boolean active) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("value", Integer.valueOf(value));

            jsonObject.put("active", Boolean.valueOf(active));

        setMax_life(jsonObject);
        return this;
    }

    public PetYuanCurStateInfoBuilder phyPower(int value, boolean active) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("value", Integer.valueOf(value));

            jsonObject.put("active", Boolean.valueOf(active));

        setPhy_power(jsonObject);
        return this;
    }

    public PetYuanCurStateInfoBuilder speed(int value, boolean active) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("value", Integer.valueOf(value));

            jsonObject.put("active", Boolean.valueOf(active));

        setSpeed(jsonObject);
        return this;
    }
}
